package com.example.test6.bean;

import com.example.test6.R;

import java.util.ArrayList;

public class Planet {

    public int image;
    public String name;
    public String desc;

    public Planet(int image, String name, String desc) {
        this.image = image;
        this.name = name;
        this.desc = desc;
    }

    private static int[] iconArray = {R.drawable.huawei, R.drawable.iphone12, R.drawable.meizu,
            R.drawable.vivo, R.drawable.oppo, R.drawable.xiaomi};
    private static String[] nameArray = {"iPhone12", "p40", "小米10", "OPPO find x2", "vivo X50", "Switch"};
    private static String[] descArray = {
            "Apple iPhone 12 256GB  移动联通电信4G手机 双卡双待",
            "华为 HUAWEI 6.63英寸升降全面屏 全网通 6GB+64GB",
            "小米 双5G待机 4800万流光相机 水滴全面屏 6GB+128GB 游戏智能手机",
            "OPPO find X2 8G+128G 全网通5G智能手机",
            "vivo X50 6GB+128GB 全网通5G拍照手机",
            "任天堂Switch 国行续航增强版 用心做最好的游戏机！"
};

    public static ArrayList<Planet> getDefaultList() {
        ArrayList<Planet> planetList = new ArrayList<Planet>();
        for (int i = 0; i < iconArray.length; i++) {
            planetList.add(new Planet(iconArray[i], nameArray[i], descArray[i]));
        }
        return planetList;
    }
}
